package com.yds.dubbo.webservice.provider;

import com.yds.dubbo.webservice.provider.config.ProviderConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.concurrent.CountDownLatch;

/**
 * @author liuhongzhen
 * @date 2023/3/23 14:23
 */
public class WebserviceProvider {

    public static void main(String[] args) throws Exception {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfiguration.class);
        context.start();

        System.out.println("dubbo service started");
        new CountDownLatch(1).await();

    }

}
